home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1998 January: Mac OS SDK / Dev.CD Jan 98 SDK2.toast / Development Kits (Disc 2) / QuickDraw GX / Programming Stuff / Sample Code / Printing Samples / Printer Drivers… / CustomWriterGX / NewApp.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-06-15  |  2.6 KB  |  83 lines  |  [TEXT/MPS ]

  1. /*
  2.     FILENAME
  3.         CommonDefines.h
  4.  
  5.     DESCRIPTION
  6.         Contains defines and prototypes used by more than one .r or .h file.
  7.  
  8.     COPYRIGHT
  9.         Copyright © 1995 Apple Computer, Inc.
  10.         All rights reserved.
  11.     
  12.     Modification history
  13.         06/14/96 - cn               -    Updated to support Universal Interfaces 2.1.
  14.                                     
  15.         10/04/95 - David Hayward -    Version 1.0.4 modified code so that
  16.                                     the driver can be build under MPW,
  17.                                     Metrowerks, and Symantec.  In general,
  18.                                     all that was required to do this was 
  19.                                     to add an inline-assembly jumptable
  20.                                     and to store all globals off of the
  21.                                     message manager instance context.
  22.                                     Also made a few changes so that the
  23.                                     driver can be rebuilt to support any
  24.                                     resolution by changing the #defines
  25.                                     kResolution and kPatStretch in
  26.                                     "CommonDefines.h"
  27.  
  28.         06/14/95 - Dave Hersey -    Version 1.0.3 to fix a bug in
  29.                                     CustomBufferingAndIO.c when creating
  30.                                     high-res PICTs, and to make the size
  31.                                     of buffers more flexible.
  32.  
  33.         05/26/95 - Dave Hersey -    Version 1.0.2 to add the new 'outp'
  34.                                     desktop printer resource in NewApp.c.
  35.  
  36.         05/03/95 - Dave Hersey -    Version 1.0.1 to fix some minor bugs in
  37.                                     CustomBufferingAndIO.c.
  38.  
  39.         01/14/95 - Dave Hersey -    Created from the shell of a hollowed-out
  40.                                     ImageWriter driver.
  41. */
  42.  
  43.  
  44. #include <Devices.h>
  45. #include <Errors.h>
  46. #include <FixMath.h>
  47. #include <Folders.h>
  48. #include <Fonts.h>
  49. #include <Memory.h>
  50. #include <QuickDraw.h>
  51. #include <Resources.h>
  52. #include <Script.h>
  53. #include <ToolUtils.h>
  54. #include <Types.h>
  55.  
  56. #include <GXGraphics.h>
  57. #include <GXExceptions.h>
  58. #include <GXLayout.h>
  59. #include <GXMath.h>
  60. #include <GXPrinterDrivers.h>
  61. #include <GXPrinting.h>
  62.  
  63.  
  64. // Our prototypes in alphabetical order.
  65.  
  66. OSErr    SD_ChooserMessage            ( short message, short caller, StringPtr objName, StringPtr zoneName, ListHandle theList, long p2 ) ;
  67. OSErr    SD_DefaultDesktopPrinter    ( Str31 dtpName ) ;
  68. OSErr    SD_RasterDataIn                ( gxOffscreenHdl hOffscreen, gxRectangle *bandRect, gxRectangle *dirtyRect ) ;
  69. OSErr    SD_OpenConnection            ( void ) ;
  70. OSErr    SD_CloseConnection            ( void ) ;
  71. void    SD_CleanupOpenConnection    ( void ) ;
  72. OSErr    SD_BufferData                ( Ptr data, long length, long bufferOptions ) ;
  73. OSErr    SD_FreeBuffer                ( gxPrintingBuffer *theBuffer ) ;
  74. OSErr    SD_WriteData                ( Ptr data, long length ) ;
  75. OSErr    SD_DumpBuffer                ( gxPrintingBuffer *theBuffer ) ;
  76. OSErr    SD_ImageJob                    ( gxSpoolFile theSpoolFile, long *closeOptions ) ;
  77. OSErr    SD_StartSendPage            ( gxFormat pageFormat ) ;
  78. OSErr    SD_FinishSendPage            ( void ) ;
  79. OSErr    SD_SetupImageData            ( gxRasterImageDataHdl hImageData ) ;
  80.  
  81. //OSErr    WriteRawData                ( void *dataBuffer, long dataLength ) ;
  82.  
  83.